<%@ page import="weeklyreport.Issue"%>



<div
	class="fieldcontain ${hasErrors(bean: issueInstance, field: 'imNumber', 'error')} ">
	<label for="imNumber">编号 </label>
	<g:textField name="imNumber" value="${issueInstance?.imNumber}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: issueInstance, field: 'date', 'error')} ">
	<label for="date">日期 </label>
	<input type="text" id="date" class="datepicker"
		value="${formatDate(format:'yyyy/MM/dd', date:issueInstance?.date)}" />
	<input type="hidden" name="date" value="date.struct" />
	<input type="hidden" name="date_year" id="date_year" value="${formatDate(format:'yyyy', date:issueInstance?.date)}" />
	<input type="hidden" name="date_month" id="date_month" value="${formatDate(format:'MM', date:issueInstance?.date)}" />
	<input type="hidden" name="date_day" id="date_day" value="${formatDate(format:'dd', date:issueInstance?.date)}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: issueInstance, field: 'status', 'error')} ">
	<label for="status">状态 </label>
	<g:select name="status"
		from="${issueInstance.constraints.status.inList}"
		value="${issueInstance?.status}" valueMessagePrefix="issue.status" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: issueInstance, field: 'depart', 'error')} ">
	<label for="depart">部门 </label>
	<g:textField name="depart" value="${issueInstance?.depart}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: issueInstance, field: 'description', 'error')} ">
	<label for="description">描述 </label>
	<g:textField name="description" value="${issueInstance?.description}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: issueInstance, field: 'reason', 'error')} ">
	<label for="reason">原因 </label>
	<g:textField name="reason" value="${issueInstance?.reason}" />
</div>

<g:hiddenField name="solveMan.id" value="${session.user.id }" />

